package com.comac.print.component.app.service;

import com.alibaba.cola.dto.Response;
import com.comac.print.component.app.api.PrintRecordService;
import com.comac.print.component.app.command.cmdExe.PrintCmdExe;
import com.comac.print.component.app.command.cmdExe.PrintRecordCmdExe;
import com.comac.print.component.app.command.qryExe.PrintRecordQryExe;
import com.comac.print.component.app.common.PrintCommon;
import com.comac.print.component.app.dto.PrintRecordDTO;
import com.comac.print.component.app.page.PageResponse;
import com.comac.print.component.app.qry.PrintRecordQry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PrintRecordServiceImpl implements PrintRecordService {

    @Autowired
    private PrintRecordCmdExe printRecordCmdExe;

    @Autowired
    private PrintRecordQryExe printRecordQryExe;
    @Autowired
    private PrintCmdExe printCmdExe;
    @Override
    public Response create(PrintCommon printCommon) {
        return printRecordCmdExe.create(printCommon);
    }

    /*@Override
    public Response print(PrintCommon printCommon) {
        return printCmdExe.print(printCommon);
    }*/

    @Override
    public PageResponse<PrintRecordDTO> qryPrintRecordList(PrintRecordQry printRecordQry) {
        return printRecordQryExe.qryPrintRecordList(printRecordQry);
    }
}
